<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<% Cookie[] cookies = request.getCookies(); %>
<%!
	private String getCookieValue(Cookie[] cookies,String name){
		String value = null;
		if(cookies == null) return null;
		for(Cookie cookie:cookies){
			if(cookie.getName().equals(name)) return cookie.getValue();
		}
		return null;
	}
%>
<title>쿠키 읽어오기</title>
job: <%= getCookieValue(cookies,"job") %>
